package com.zhang.auth.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.oauth2.provider.token.TokenStore;
import org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore;

/**
 * @Package: com.zhang.auth.config
 * @ClassName: TokenConfig
 * @Author: Think
 * @CreateTime: 2021/8/3 14:13
 * @Description:
 */
@Configuration
public class TokenConfig {

    @Bean
    public TokenStore tokenStore(){
        // 使用内存管理token策略
        return new InMemoryTokenStore();
    }

}
